import request from '@/utils/request'

// 查询综合地名图层属性列表
export function listFeature(query) {
  return request({
    url: '/gis/feature/list',
    method: 'get',
    params: query
  })
}

// 查询综合地名图层属性详细
export function getFeature(pnid) {
  return request({
    url: '/gis/feature/' + pnid,
    method: 'get'
  })
}

// 新增综合地名图层属性
export function addFeature(data) {
  return request({
    url: '/gis/feature',
    method: 'post',
    data: data
  })
}

// 修改综合地名图层属性
export function updateFeature(data) {
  return request({
    url: '/gis/feature',
    method: 'put',
    data: data
  })
}

// 删除综合地名图层属性
export function delFeature(pnid) {
  return request({
    url: '/gis/feature/' + pnid,
    method: 'delete'
  })
}
